package com.ggk911.pharmacy_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 药品销售表详情
 *
 * @author ggk-911
 * @version 1.0 2023/4/13 10:00
 */
@TableName("drug_sale_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DrugSaleInfo {
    @TableId(value = "drug_sale_info_id", type = IdType.AUTO)
    private Integer drugSaleInfoId;

    private Integer drugSaleId;

    private Integer drugInfoId;

    private Integer drugSaleInfoNum;

    private Double drugSalePrice;

    @TableField(exist = false)
    private DrugInfo drugInfo;

    @TableField(exist = false)
    private DrugSale drugSale;
}
